import { reactive } from "vue";
import type { FormRules } from "element-plus";
import { isPhone } from "@pureadmin/utils";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
	notepadTitle: [{ required: true, message: "标题名称为必填项", trigger: "blur" }],
	content: [{ required: true, message: "内容为必填项", trigger: "blur" }],
  planDate: [{ required: true, message: "计划时间为必填项", trigger: "change" }],
  status: [{ required: true, message: "状态为必填项", trigger: "change" }],
  completeRate: [{ required: true, message: "完成比例为必填项", trigger: "blur" }],
});
